const { ccclass, property } = cc._decorator;

@ccclass
export default class MatchItemPrefab extends cc.Component {
    @property(cc.Node)
    matchItemPrefab: cc.Node = null;

    @property(cc.Node)
    aniNode: cc.Node = null;

    @property(cc.Node)
    spine: cc.Node = null;

    @property(cc.Node)
    lightSpine: cc.Node = null;

    onLoad() {
        this.matchItemPrefab = this.node;
        this.aniNode = this.matchItemPrefab.getChildByName("aniNode");
        this.spine = this.aniNode.getChildByName("spine");
        this.lightSpine = this.aniNode.getChildByName("lightSpine");
    }
}
